package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Activitytype implements Serializable {
    private Integer atid;

    private String atname;

    private static final long serialVersionUID = 1L;

    public Integer getAtid() {
        return atid;
    }

    public void setAtid(Integer atid) {
        this.atid = atid;
    }

    public String getAtname() {
        return atname;
    }

    public void setAtname(String atname) {
        this.atname = atname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Activitytype other = (Activitytype) that;
        return (this.getAtid() == null ? other.getAtid() == null : this.getAtid().equals(other.getAtid()))
            && (this.getAtname() == null ? other.getAtname() == null : this.getAtname().equals(other.getAtname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAtid() == null) ? 0 : getAtid().hashCode());
        result = prime * result + ((getAtname() == null) ? 0 : getAtname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", atid=").append(atid);
        sb.append(", atname=").append(atname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}